﻿using System; 

namespace XFGameFramework
{
    
    /// <summary>
    /// 自定义OnGUI(适用于技能系统、Buff系统、装备系统、任务系统、配表系统...))
    /// </summary>
    public abstract class CustomPropertyGUI : Attribute
    {
#if UNITY_EDITOR

        public bool reloadTreeViewOnValueChange;

        /// <summary>
        /// 构造函数
        /// </summary> 
        public CustomPropertyGUI()
        {
            this.reloadTreeViewOnValueChange = false;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="reloadTreeViewOnValueChange">当属性的值改变时,是否重新加载TreeView</param>
        public CustomPropertyGUI(bool reloadTreeViewOnValueChange) 
        {
            this.reloadTreeViewOnValueChange = reloadTreeViewOnValueChange;
        }


        public abstract void OnPropertyGUI(UnityEditor.SerializedProperty serializedProperty);
         
#endif
    }
     
}

